package pt.ua.helpdesk.client;

import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;

public class FaqViewOnClick implements ClickListener {

	private Integer idFaq;
	private Integer user;
	
	/**
	 * Class constructor
	 * @param id Ticket id
	 */
	public FaqViewOnClick(Integer id, Integer user)
	{
		this.idFaq = id;
		this.user = user;
	}
	
	/**
	 * Click listener. Loads the composite used
	 * to view a ticket
	 */
	public void onClick(Widget sender) 
	{
		Default.loadComposite(new FaqView(idFaq.intValue(), user.intValue()));
	}
}
